<?php

class Drugview extends CWidget
{
    // title
    public $title;
    // nguoi dang san pham
    public $userAdd;
    // gia cua thuoc
    public $price;
    //so nguoi xem
    public $userView;
    // ngay dang
    public $dayAdd;
    //mo ta chi tiet
    public $description;
    public $image;

    protected $cssFile;
    
    public function init()
    {
        parent::init();
    }
    
    protected function registerClientScript()
    {
        $this->cssFile=dirname(__FILE__).DIRECTORY_SEPARATOR.'drug.css';
        $this->cssFile=Yii::app()->getAssetManager()->publish($this->cssFile);
        $cs=Yii::app()->clientScript;
        $cs->registerCssFile($this->cssFile);
    }
    
    public function run()
    {
        $this->registerClientScript();
        $this->render('drugview');
    }
}
?>